#include "Transient.h"
#include <stdlib.h>

void beginObservations(){
	contatoreOss = 0;
	fileOsservation = fopen(OUTPUT_FILE_OSSERVATION, "a");
}

void recordObservation(double osservation){
	fprintf(fileOsservation, "%.6f\n", osservation);
	contatoreOss++;
	if(contatoreOss >= N_MAX_OSSERVATION){
		endObservations();
		exit(0);
	}
}

void endObservations(){
	fprintf(fileOsservation, "\n");
	fclose(fileOsservation);
}